home *** CD-ROM | disk | FTP | other *** search
- on CheckScrollZones
- global gDisplayMem, gScrollArrowCh, gNextArticle, gScrollLine, gScrollTop, gScrollBotDB, gfrac
- set ReturnVal to 0
- puppetSprite(gScrollArrowCh, 1)
- set ScrArrX to 120
- if rollOver(14) then
- DBupCursor()
- set the locH of sprite gScrollArrowCh to 200
- set the locV of sprite gScrollArrowCh to 188
- set the memberNum of sprite gScrollArrowCh to 16
- set CurrTop to the scrollTop of member gDisplayMem
- set NewTop to CurrTop - 10
- if NewTop < 0 then
- set NewTop to 0
- end if
- set the scrollTop of member gDisplayMem to NewTop
- set ReturnVal to 1
- set gNextArticle to "..."
- else
- if rollOver(15) then
- DBdownCursor()
- set the locH of sprite gScrollArrowCh to 200
- set the locV of sprite gScrollArrowCh to 188
- set the memberNum of sprite gScrollArrowCh to 15
- set CurrTop to the scrollTop of member gDisplayMem
- set NewTop to CurrTop + 10
- set lowerLimit to the height of member gDisplayMem - 10
- if NewTop > lowerLimit then
- set NewTop to lowerLimit
- end if
- set the scrollTop of member gDisplayMem to NewTop
- set ReturnVal to 1
- set gNextArticle to "..."
- else
- set the locH of sprite gScrollArrowCh to -9000
- end if
- end if
- set st to the scrollTop of member gDisplayMem
- set ScrollRange to gScrollBotDB - gScrollTop
- set gfrac to 1.0 * st / the height of member gDisplayMem
- set ScrollCh to 11
- puppetSprite(ScrollCh, 1)
- set the locV of sprite ScrollCh to gScrollTop + (gfrac * ScrollRange)
- set the locH of sprite ScrollCh to gScrollLine
- return ReturnVal
- end
-